/**
 * @author phoenics@126com
 * @date 2017年11月13日 下午4:15:59
 * @version V1.0
 */

package com.jx.gocom.nlp.classify.webservice.DTO;

import java.util.ArrayList;
import java.util.List;

/**
 *
 */
public class EvaluateResult {
	private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(EvaluateResult.class);
	public static class CalPreRec{
		private String classname;
		private double precision;
		private double recall ;
		/**
		 * @return the classname
		 */
		public String getClassname() {
			return classname;
		}
		/**
		 * @param classname the classname to set
		 */
		public void setClassname(String classname) {
			this.classname = classname;
		}
		/**
		 * @return the precision
		 */
		public double getPrecision() {
			return precision;
		}
		/**
		 * @param precision the precision to set
		 */
		public void setPrecision(double precision) {
			this.precision = precision;
		}
		/**
		 * @return the recall
		 */
		public double getRecall() {
			return recall;
		}
		/**
		 * @param recall the recall to set
		 */
		public void setRecall(double recall) {
			this.recall = recall;
		}
	}
	private double accuracy;
	private List<CalPreRec> calPreRecs=new ArrayList<>();

	/**
	 * @return the calPreRecs
	 */
	public List<CalPreRec> getCalPreRecs() {
		return calPreRecs;
	}

	/**
	 * @return the accuracy
	 */
	public double getAccuracy() {
		return accuracy;
	}

	/**
	 * @param accuracy the accuracy to set
	 */
	public void setAccuracy(double accuracy) {
		this.accuracy = accuracy;
	}

}
